#!/bin/bash
/usr/bin/rsync -av \
    --exclude '.git' \
    --exclude '.DS_Store' \
    --exclude 'runtime' \
     --exclude '.idea' \
    ./target/supplychainapi-*.jar root@10.10.10.177:/data/jboot_dir/supplychainAPI/app/app.jar;

ssh root@10.10.10.177 > /dev/null 2>&1 << eeooff
cd /data/jboot_dir/supplychainAPI
docker-compose restart
eeooff
echo done!